package com.njitzx.fileupload.util;

import com.njitzx.fileupload.pojo.UserDTO;

public class UserHolder {
    private static ThreadLocal<UserDTO> userHolder = new ThreadLocal<>();
    public static void setUser(UserDTO user) {
        userHolder.set(user);
    }
    public static UserDTO getUser() {
        return userHolder.get();
    }
}
